'use strict';
module.exports = app => {
  const { router, controller } = app;
  router.get('/admin/list', controller.admin.userlist);
  router.get('/admin/adlist', controller.admin.adminList);
  router.post('/admin/create', controller.admin.create);
  router.post('/admin/login', controller.admin.login);
  router.post('/admin/update', controller.admin.update);
  router.post('/admin/delete', controller.admin.deleteAdmin);
  router.resources('station', '/admin/station', controller.station);
  router.resources('train', '/admin/train', controller.train);
  router.resources('order_master', '/admin/orderMaster', controller.orderMaster);
  router.get('/admin/order/findByUid', controller.orderMaster.findByUid);
  router.get('/admin/order/findBystatus', controller.orderMaster.findByStatus);
};
